<template>
  <div class="app">
    <LayoutMobileV2 v-if="isMobile" />
    <LayoutPC v-else />
  </div>
</template>

<script setup>
import LayoutMobileV2 from "./layout/LayoutMobileV2.vue";
import LayoutPC from "./layout/LayoutPC.vue";
import { ref, onMounted } from "vue";

const isMobile = ref(false);

onMounted(() => {
  isMobile.value = window.innerWidth < 768;
  window.addEventListener("resize", () => {
    isMobile.value = window.innerWidth < 768;
  });
});
</script>
<style scoped></style>
